#include "DocumentManager.h"
#include "WorkDokument.h"
#include "ObserveDocument.h"

DocumentManager::DocumentManager(QObject* parent) : QObject(){
	work_dokument = new WorkDokument(this);
	observe_document = new ObserveDocument(this);
	
	connect(work_dokument, SIGNAL(sendTextFragment(int,int,const QTextDocumentFragment)), 
			observe_document, SLOT(updateText(int,int,const QTextDocumentFragment)));
}

DocumentManager::~DocumentManager()
{
}
